package com.zksk.mbg.admin.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.zksk.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 客户（平台）对产品的要求与费率关系表
 * </p>
 *
 * @author Zksk Acmen
 * @since 2022-12-07
 */
@Data
@Builder
@Accessors(chain = true)
@TableName("platform_r_rate_customer_req")
@ApiModel(value = "RRateCustomerReq对象", description = "客户（平台）对产品的要求与费率关系表")
public class RRateCustomerReq extends Model {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("费率id")
    @TableField("rate_id")
    private Long rateId;

    @ApiModelProperty("客户产品要求id")
    @TableField("customer_prod_req_id")
    private Long customerProdReqId;

    @TableField("active")
    private String active;


    public static final String ID = "id";

    public static final String RATE_ID = "rate_id";

    public static final String CUSTOMER_PROD_REQ_ID = "customer_prod_req_id";

    public static final String ACTIVE = "active";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
